Simple Type Inference for Term Graph Rewriting Systems
نویسنده
چکیده
a crude style rule basis Σ that is concrete (no polymorphism) and complete (each type has a rule). Build the final type-graph ∆, whose nodes are the concrete type symbols, and whose arcs are given by: for each ξ, if ξ ← ζ 1 …ζ n is the rule for ξ, then the k'th child of ξ is ζ k. If a system R is well typed acording to Σ and a suitable B, then for every execution graph G of the system, there is a node-symbol-forgetting homomorphism h : G → ∆. Readers should convince themselves that this property fails for the imperative discipline. To conclude then, we have discussed type inference for TGRSs and shown that credible type systems can be built using dataflow analysis and unification, even in the most general case where no particular nice structural properties are assumed for the system, fulfilling the promise in the conclusion of Banach (1989). We have also suggested that more powerful extensions of these systems can be contemplated. These extensions will be described elsewhere.
منابع مشابه
Uniqueness Typing for Functional Languages with Graph Rewriting Semantics
We present two type systems for term graph rewriting: conventional typing and (polymorphic) uniqueness typing. The latter is introduced as a natural extension of simple algebraic and higher-order uniqueness typing. The systems are given in natural deduction style using an inductive syntax of graph denotations with familiar constructs such as let and case. The conventional system resembles tradi...
متن کاملSimple gap termination for term graph rewriting systems
This paper proves the extension of Kruskal-Friedman theorem, which is an extension of the ordinary Kruskal's theorem with gap-condition, on !-trees (Main theorem 1 in section 3). Based on the theorem, a new termination criteria for cyclic term graph rewriting systems, named simple gap termination (Main theorem 2 in section 4), is proposed where the naive extension of simple termination (based o...
متن کاملInfinitary Term Graph Rewriting is Simple, Sound and Complete
Based on a simple metric and a simple partial order on term graphs, we develop two infinitary calculi of term graph rewriting. We show that, similarly to infinitary term rewriting, the partial order formalisation yields a conservative extension of the metric formalisation of the calculus. By showing that the resulting calculi simulate the corresponding well-established infinitary calculi of ter...
متن کاملConvergence in Infinitary Term Graph Rewriting Systems is Simple (Extended Abstract)
Citation for published version (APA): Bahr, P. (2013). Convergence in infinitary term graph rewriting systems is simple (extended abstract). In R. Echahed, & D. Plump (Eds.), Proceedings of the 7th International Workshop on Computing with Terms and Graphs: Rome, 23th March 2013 (pp. 17-28). Open Publishing Association. Electronic Proceedings in Theoretical Computer Science, Vol.. 110, DOI: 10.4...
متن کاملTypes for Nominal Rewriting?
We define a type inference system for Nominal Rewriting where the types associated to terms are polymorphic (built from a set of base data sorts, type variables, and user-defined type constructors). In contrast with standard term rewriting systems or the λ-calculus, a typing environment for nominal rewriting includes type information for atoms, variables and function symbols. We give a syntax-d...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1992